package com.wutoon.etl.pojo;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

/**
 * @author 武兴云/72176468
 * @version 1.0
 * @date 2024/2/27 9:52
 * @description Http到JDBC的数据传输任务配置
 */
@Data
public class Db2HttpTask extends DataTransferTask{
    private HttpPushSourceConfig targetSourceConfig;

    @Data
    public static class HttpPushSourceConfig {
        private String url;

        private String method;

        private JSONObject head;

        private JSONObject bodyTemplate;

        private HttpPushParamConfig data;

        private String system;

        private String judgeSuccessExpression;

        private HttpPushParamConfig requestNo;

    }
    @Data
    public static class HttpPushParamConfig {
        private String key;

        private String position;

    }
}
